import request from "@/utils/request";


/**
 * 获取list
 */
export function list(data) {
  return request({
    url: "/bv/script/item/list",
    method: "post",
    data: data
  });
}

/**
 * 获取分类详细数据信息
 * @param {分类ID} categoryId
 * @returns
 */
export function getAllList(categoryId) {
  return request({
    url: "/bv/script/item/getAllList/" + categoryId,
    method: "post",
  });
}

// 查询用户详细
export function getEntity(id) {
  return request({
    url: "/bv/script/item/" + id,
    method: 'get'
  })
}
export function deleteEntity(ids) {
  return request({
    url: "/bv/script/item/" + ids,
    method: "delete",
  });
}
export function saveEntity(data) {
  return request({
    url: "/bv/script/item/save",
    method: "post",
    data: data
  });
}
